import request from '@/utils/request'

// 分页查询围栏信息
export function getPageList(data) {
    return request({
        url: '/fence/list',
        method: 'post',
        data
    })
}

//新增或修改
export function addOrUpdateConfig(data) {
    return request({
        url: '/fence/addOrupdate',
        method: 'post',
        data
    })
}

//删除配置
export function deleteConfig(data) {
    return request({
        url: '/fence/del',
        method: 'post',
        data
    })
}

//详情
export function fenceDetail(id) {
    return request({
        url: `/fence/detail/${id}`,
        method: 'get'
    })
}